const mongoose = require('mongoose')
const Schema = mongoose.Schema

const vipCreateRecordSchema = new Schema({
  linkSaler: {
    type: Schema.Types.ObjectId,
    ref: 'saler'
  },
  type: {
    type: Schema.Types.ObjectId,
    ref: 'vipType'
  },
  number: Number,
  createAt: {
    type: Date,
    default: new Date()
  }
})

mongoose.model('vipCreateRecord', vipCreateRecordSchema)
